<div class="lineSales index">
    <h2><?php echo __('Lineas de Ventas'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th><?php echo $this->Paginator->sort('sale_id'); ?></th>
            <th><?php echo $this->Paginator->sort('promotion_id', array('label' => 'Promocion')); ?></th>
            <th><?php echo $this->Paginator->sort('quantity', array('label' => 'Cantidad')); ?></th>
            <th><?php echo $this->Paginator->sort('total_line', array('label' => 'Total ($)')); ?></th>
            <th><?php echo $this->Paginator->sort('cash_dailies_id', array('label' => 'cash_dailies_id')); ?></th>
            <th class="actions"><?php echo __('Opciones'); ?></th>
        </tr>
        <?php foreach ($lineSales as $lineSale): ?>
            <tr>
                <td><?php echo h($lineSale['LineSale']['id']); ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($lineSale['Sale']['id'], array('controller' => 'sales', 'action' => 'view', $lineSale['Sale']['id'])); ?>
                </td>
                <td>
                    <?php echo $this->Html->link($lineSale['Promotion']['name'], array('controller' => 'promotions', 'action' => 'view', $lineSale['Promotion']['id'])); ?>
                </td>
                <td><?php echo h($lineSale['LineSale']['quantity']); ?>&nbsp;</td>
                <td><?php echo h($lineSale['LineSale']['total_line']); ?>&nbsp;</td>
                <td><?php echo h($lineSale['LineSale']['cash_dailies_id']); ?>&nbsp;</td>
                <td class="actions">
                    <?php // echo $this->Html->link(__('Ver'), array('action' => 'view', $lineSale['LineSale']['id'])); ?>
                    <?php // echo $this->Html->link(__('Editar'), array('action' => 'edit', $lineSale['LineSale']['id'])); ?>
                    <?php echo $this->Form->postLink(__('Borrar Venta'), array('action' => 'delete', $lineSale['LineSale']['id'], $lineSale['LineSale']['promotion_id'], $lineSale['LineSale']['quantity'], $lineSale['Sale']['shop_id']), null, __('¿Realmente desea eliminar la venta?', $lineSale['LineSale']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $this->element('footer/paginator') ?>

</div>
<!--Show General Menu-->
<?php echo $this->element('menues/general') ?>